guideRecordStatistics = function(){
	Ext.define('classModel',{
		extend:'Ext.data.Model',
		fields:['valueId','valueName']
	});
	var promStore = Ext.create('Ext.data.Store',{
	      //  xtype: 'Ext.data.Store',
	        singleton : true,
	        proxy:{ 
	        	type:'ajax',
	        	url: 'publicDictAction.action' ,      
	        	reader: { 
	        		type: 'json', 
	        		root: 'list' 
	        	},
	        	extraParams:{
	        		publicCode:'prom'
	        	}
	        },
	        fields:['valueId','valueName'],
	        autoLoad: true,
	        listeners: {//为了编辑时设定初始值Ext.getCmp("fwz").setValue(2);  
                load: function(store,records) { 
                    store.insert(0,Ext.create('classModel', { valueId: '', valueName: '不限制' }));
                    Ext.getCmp('changePromBox').setValue('');               
                }  
            }  
	    });
	
	Ext.define('systemParamModel',{
			extend:'Ext.data.Model',
			fields:[
			        	{name:'teacherId',type:'String'},
			        	{name:'teacherName',type:'String'},
			        	{name:'recordNum',type:'String'},
			        	{name:'mark',type:'string'},
			        	{name:'prom',type:'string'}
				       ]
		});
	var statisticsStore = Ext.create('Ext.data.Store',{
		model:systemParamModel,
		autoLoad:true,
		proxy:{
			type:'ajax',
			url:'selectStatisticsAction.action',
			reader:{
				type:'json',
				root:'resultList'
			},
		}
	});

	var grid = Ext.create('Ext.grid.GridPanel',{
		store:statisticsStore,	
		columnLines:true,
	//	selModel:checkBox,
		disableSelection:false,
		loadMask:true,
		columns:[
		         {text:'导师编号',width:100,dataIndex:'teacherId',sortable:true},
		         {text:'导师姓名',width:200,dataIndex:'teacherName'},
		         {text:'指导次数',width:200,dataIndex:'recordNum'},
		         {text:'问卷调查分数',width:100,dataIndex:'mark'},
		         {text:'学年',width:200,dataIndex:'prom'}
		         ],
		autoHeight:true,
		authWidth:true,

		title:"导师指导情况统计",
		loadMask:true,
		dockedItems:[{
			dock:'top',
			xtype:'toolbar',
				items:[{
					xtype:'combobox',
					id:'changePromBox',
			    	alias:'widget.lifechannelCombo',
			        width: 300,
			        fieldLabel: '请选择学年',
			        store: promStore,
			        displayField: 'valueName',
			        valueField: 'valueId',
			        triggerAction: 'all',
			        emptyText: '请选择...',
			        blankText: '请选择学年',        
			        queryMode:'local',
			     		
				}]		
		},{
			dock:'top',
			xtype:'toolbar',
			items:[

			       {
			    	   id:'statisticsStartTime',
			    	   xtype: 'datefield',
			    	   // fieldCls: 'textfieldBorder',
			    	   width:200,
			    	   format: 'Y-m-d',
			    	   editable: false,
			    	   //allowBlank: false,		           
			    	   fieldLabel: '开始时间'
			       },
			       {
			    	   id:'statisticsEndTime',
			    	   xtype: 'datefield',
			    	   // fieldCls: 'textfieldBorder',
			    	   width:200,
			    	   format: 'Y-m-d',
			    	   editable: false,
			    	   //allowBlank: false,		           
			    	   fieldLabel: '结束时间'
			       },
			       {
			    	   id:'teacherNameId',
			    	   xtype: 'textfield',
			    	   fieldLabel: '导师姓名',
			    	   width:200
			       	},
			       	{
			       		text:'查询',
						//iconCls:'Applicationform',
						xtype:'button',
						handler:searchStatictics
				
			       	},{
			       		
				       		text:'重置',
							//iconCls:'Applicationform',
							xtype:'button',
							handler:function(){
								Ext.getCmp('statisticsStartTime').setValue('');
								Ext.getCmp('statisticsEndTime').setValue('');
								Ext.getCmp('teacherNameId').setValue('');
								Ext.getCmp('changePromBox').setValue('');
							}
					
				       	
			       	}
			       ]
			},{
			dock:'bottom',
			xtype:'label',
			html:'<div style="font-size:12px;color:red">1.默认显示当前学年数据</div>'
		}],
	});
	function searchStatictics(){
		statisticsStore.proxy.extraParams.prom=Ext.getCmp('changePromBox').value;
		statisticsStore.proxy.extraParams.startTime=Ext.getCmp('statisticsStartTime').value;
		statisticsStore.proxy.extraParams.endTime=Ext.getCmp('statisticsEndTime').value;
		statisticsStore.proxy.extraParams.teacherName=Ext.getCmp('teacherNameId').value;
		statisticsStore.load();	
	}
	return grid;
};